package com.pro.framework.api.file.storage;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PresignedUrlResponse {
    @Schema(description = "预签名的URL")
    private String url;
    @Schema(description = "HTTP方法")
    private String method;        //  (GET / PUT)
//    @Schema(description = "可能需要的Header")
//    private Map<String, String> headers;
    @Schema(description = "有效期")
    private Long expireSeconds;
//    @Schema(description = "额外参数")
//    private Map<String, String> customVariables;

//    public PresignedUrlResponse(String url, String method, Map<String, String> headers, Long expireSeconds) {
//        this.url = url;
//        this.method = method;
//        this.headers = headers;
//        this.expireSeconds = expireSeconds;
//    }
}
